package edu.tjufe.llp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.tjufe.llp.entity.ChargeArea;
import edu.tjufe.llp.entity.Station;

import java.util.List;

/**
 * 充电桩Service接口
 *
 * @author llp
 * @date 2022-12-23
 */
public interface IStationService extends IService<Station>
{
    /**
     * 查询充电桩
     *
     * @param stationId 充电桩主键
     * @return 充电桩
     */
    public Station selectStationByStationId(Integer stationId);

    /**
     * 查询充电桩列表
     *
     * @param station 充电桩
     * @return 充电桩集合
     */
    public List<Station> selectStationList(Station station);

    /**
     * 新增充电桩
     *
     * @param station 充电桩
     * @return 结果
     */
    public int insertStation(Station station);

    /**
     * 修改充电桩
     *
     * @param station 充电桩
     * @return 结果
     */
    public int updateStation(Station station);

    /**
     * 批量删除充电桩
     *
     * @param stationIds 需要删除的充电桩主键集合
     * @return 结果
     */
    public int deleteStationByStationIds(Integer[] stationIds);

    /**
     * 删除充电桩信息
     *
     * @param stationId 充电桩主键
     * @return 结果
     */
    public int deleteStationByStationId(Integer stationId);

    Page<Station> findPage(Page<Station> page, String stationCode,Integer areaId,String state);

}
